<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>更换头像</title>
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }
        
        .avatar-container {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto;
            border: 3px solid #87CEFA;
        }
        
        .buttons {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }
        
        button {
            padding: 10px 20px;
            background: #87CEFA;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="avatar-container">
        <div class="avatar">
            <img id="previewImage" src="image/28.jpg" alt="用户头像" style="width:100%;height:100%;object-fit:cover;">
        </div>
    </div>

    <div class="buttons">
        <button id="uploadButton">从相册选择</button>
        <button id="cameraButton">拍照</button>
    </div>

    <script>
        document.getElementById('uploadButton').addEventListener('click', function() {
            alert("相册功能待实现");
        });
        
        document.getElementById('cameraButton').addEventListener('click', function() {
            alert("摄像头功能待实现");
        });
    </script>
</body>
</html>